<?php


namespace App\Model\Mysql;


use EasySwoole\Mysqli\QueryBuilder;

class UserExamineModel extends BaseModel
{
    protected $tableName = 'pro_user_examine';
    protected $autoTimeStamp = true;


    public function project($field = '*')
    {
        return $this->hasOne(ProjectModel::class, function (QueryBuilder $query) use ($field) {
            $query->fields($field);
            return $query;
        }, 'project_id', 'id');
    }


}